package learn.bean;

/**
 * @author yxc
 * @description:
 * @date 2021/12/25
 */
public class OldUser {

    String name;
    Integer age;

    Pets pets;

    public OldUser(String zhangsan, int i, Pets tomcatPet) {
        this.name = zhangsan;
        this.age = i;
        this.pets = tomcatPet;
    }

    public Pets getPets() {
        return pets;
    }

    public void setPets(Pets pets) {
        this.pets = pets;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public OldUser() {
    }

    public OldUser(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", pets=" + pets +
                '}';
    }
}
